package com.teichmann.jpa.util;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class EntityManagerHelper {

	private static EntityManagerFactory entityManager = null;

	public static EntityManagerFactory getEntityManager() {
		if (entityManager == null) {
			entityManager = Persistence.createEntityManagerFactory("default");
		}
		return entityManager;
	}

}
